How to setup permissions on your Garrys Mod server
Permissions are a very big things in all servers and it is quite often seen In gmod servers. In this article we are going to use the ULX admin mod to make it easier then ever to do. This guide assumes you already have that setup but if you don’t you can view it here.
Setting yourself as a super admin
Before you can use the ULX commands you need to set yourself as a super admin on your server. If you haven’t already you can do so by running the command;
ulx adduserid YOURSTEAMID superadmin
In your console. You should replace the “YOURSTEAMID” with you actual steam id, if you don’t know it you can find it here. An example of above is;
ulx adduserid STEAM:_0:0:1234 superadmin
If the command worked you should get the following messages in your console;
- ‘added CooperA to group superadmin’
- ‘[ULX] added CooperA to group superadmin’
Using the in-game menu
Once you have been successfully added as a super admin you should be able to access the menu ingame. You can do this by doing one of the 3 following;
!menu
ulx menu
bind m “ulx menu” (this lets you click the letter ‘m’ to open the menu)
Once in the menu there are 5 tabs that you can choose between;
- cmds
- groups
- maps
- settings
- bans
There are many different commands and options you can change in this menu, although lots of them also have a chat equivalent, e.g. ‘!bring PLAYER’ this command will work the same as using the button on the menu.
Adding / Removing Groups
By default the mod has 3 administrator groups;
- operator
- admin
- superadmin
Once in the ULX menu
- Open the groups header
- In the dropdown select the manage groups selection
On the right there is pane of the menu there is a form to add a group, the fields that you need to fill out are;
- Name
- The name of the group that you are making, they can be anything but following general naming conventions it would be lowercase for all letters and the spaces would be represented as _ e.g. cooper_a_owner
- Inherits from
- Where there is already an existing group that the new group should inherit permission from. The new group can do anything the selected group can do aswell as any other permissions you assign it.
- Can Target
- This is where you can assign the group to only target specific users, and groups. The ‘ * ‘ group allows the group to target everyone.
When deleting a group it is to note that once it has been deleted it is irreversible, and that once the group is deleted all roles that were assigned with that group are also gone. To delete the group all you have to do it;
- Select the group from the dropdown menu on the left side of the panel.
- Then click the delete button and the group is now deleted.
Updating a Group
Updating the group is the same as deleting, we are just modifying the steps;
- Select the group from the dropdown menu on the left side of the panel.
- Update the details you want then click the update button, the group is now updated.
Granting and Revoking permissions
The steps to add or remove permissions from groups are as follows;
- Select the ‘Groups” tab on the menu
- Select the group that you want to edit the permission for in the dropdown and click “Manage Permissions”. (A list of every permission should appear on the right side of the menu)
- Select the permissions that you want the group to have.
That’s it the group will now inherit all of the permissions that you have selected.
Assigning users to groups
You can assign players to groups through the ULX menu, which you can open using the same chat commands or keybinds are previously set and or stated.
- Switch to the groups tab
- In the dropdown menu select the group you want to add the user to
- Click the add button and select the users you want to add to the group. If the user is not online you can also use their steamId.
You can also add users to groups with the following console command;
- ulx adduserid STEAMID GROUP
e.g. ulx adduserid STEAM:_0:0:1234 cooper_a_owner
Removing users from groups
To remove a user from a group follow the same steps but select the remove button;
- Upen the ulx menu
- Select the groups tab
- Select the group that the person is currently apart of.
- Select the change button and select the new group you want the user to inherit from or the remove button which will remove them from the group and revert them back to the default group.
You can also remove a user from a group in the console, you can do it by running the following command;
- ulx removeuserid STEAMID
e.g. ulx removeuserid STEAM:_0:0:1234
You now have a complete guide on adding, removing, editing, and deleting groups aswell as adding and removing users from them.
If you require any further assistance, please create a ticket here.
Created By: Cooper A.